<template>
  <div class="className">nav2-1</div>
</template>

<script>
import { inject, onMounted, reactive, ref } from "vue";
export default {
  name: "Nav2-1",
  setup() {
    const appCtx = inject("appCtx");
    // onMounted(()=>{
    //   console.log('onMounted')
    // })
    appCtx.$store
      .dispatch("User/getUserInfo", {
        username: "admin",
        password: "123456",
      })
      .then((res) => {
        console.log("1111", res);
      })
      .catch((err) => {
        // loading.close();
        console.log(err);
      });
  },
};
</script>
<style lang="scss" scoped></style>
